﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.VRDD.InputDto._0623
{
    /// <summary>
    ///  更新店铺位置信息
    /// </summary>
    public class InputFolderGPS
    {
        /// <summary>
        ///  城市
        /// </summary>
        public string city { get; set; }
        /// <summary>
        ///  店铺（导航）id
        /// </summary>
        [RegularExpression("^([1-9][0-9]*)$", ErrorMessage = "店铺目录folder_id异常")]//大于0正则表达式
        public int folder_id { get; set; }
        /// <summary>
        ///  经度
        /// </summary>
        public decimal gps_x { get; set; }
        /// <summary>
        ///  纬度
        /// </summary>
        public decimal gps_y { get; set; }
        /// <summary>
        ///  店铺地址
        /// </summary>
        //[Required(ErrorMessage = "bs_url：店铺地址必传项！")]
        public string addr { get; set; }
        /// <summary>
        ///  楼层列表
        /// </summary>
        public string floor_list { get; set; }
        /// <summary>
        ///  配送距离
        /// </summary>
        [RegularExpression("^[0-9]+([.][0-9]{0,2})?$", ErrorMessage = "配送距离整数或小数，小数后最多只能有两位！")]
        public decimal deliveryDistance { get; set; }
    }
}